
import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
// 全局指令注册
import { lazyPlugin } from '@/directives/imgLazy'


//引入初始化的样式文件
import '@/styles/common.scss'

// 引入全局组件插件
import { componentPlugin } from '@/components'

//pinia-plugin-persistedstate实现数据持久化
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)
app.use(pinia).use(router).use(componentPlugin).use(lazyPlugin).mount('#app')

